<template>
    <div class="app-container">
        <img :src="imageUrl">
    </div>
</template>

<script>
export default {
    data(){
        return {
            imageUrl:''
        }
    },
    created() {
        //获取路由的id值
        if(this.$route.params && this.$route.params.id) {
            this.imageUrl = this.$route.params.id
        }
    }
}
</script>